package com.qf.flower_zuul.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/visit")
public class SkipController {

    @RequestMapping("/index")
    public String index() {
        return "index";
    }


    @RequestMapping("/select")
    public String select(Model model, Long detailId, String flowerName) {
        model.addAttribute("detailId", detailId);
        model.addAttribute("flowerName", flowerName);

        return "aiqingxianhua";
    }

    @RequestMapping("/miaosha")
    public String miaosha(Model model, Long flowerId) {
        model.addAttribute("flowerId", flowerId);
        return "miaosha";
    }

}
